package com.frame.support;

/**
 * 树模型
 * @author sxjun1904
 * @since 2016-6-5
 */
public class Tree {
	public static final String TREE_ROOT_ID="7c6332af-81b7-4f40-b974-c90489487f9c";
	private String id;
	private String pId;
	private String name;
	private boolean isParent=false;
	private boolean open=false;
	private boolean nocheck=false;
	private boolean checked=false;
	/**
	 * get tree id
	 * @return
	 */
	public String getId() {
		return id;
	}
	/**
	 * set tree id
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * get tree parent id
	 * @return
	 */
	public String getpId() {
		return pId;
	}
	/**
	 * set tree parent id
	 * @param pId
	 */
	public void setpId(String pId) {
		this.pId = pId;
	}
	/**
	 * get tree name
	 * @return
	 */
	public String getName() {
		return name;
	}
	/**
	 * get tree name
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * is parent tree
	 * @return
	 */
	public boolean getIsParent() {
		return isParent;
	}
	/**
	 * set parent tree
	 * @param isParent
	 */
	public void setParent(boolean isParent) {
		this.isParent = isParent;
	}
	/**
	 * is tree open
	 * @return
	 */
	public boolean isOpen() {
		return open;
	}
	/**
	 * set tree node open
	 * @param open
	 */
	public void setOpen(boolean open) {
		this.open = open;
	}
	/**
	 * get if the tree is not be checked
	 * @return
	 */
	public boolean isNocheck() {
		return nocheck;
	}
	/**
	 * set not check the tree
	 * @param nocheck
	 */
	public void setNocheck(boolean nocheck) {
		this.nocheck = nocheck;
	}
	/**
	 * get if the tree is been checked
	 * @return
	 */
	public boolean isChecked() {
		return checked;
	}
	/**
	 * to check the tree
	 * @param nocheck
	 */
	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	
}
